package actions;

import java.awt.event.ActionEvent;

import foxtrot.Task;
import foxtrot.Worker;
import backend.ThemeManager;

public class GetDetailedTheme extends ToolBarAction
{
	private String themeId;
	public GetDetailedTheme(ThemeManager controller, String themeId)
	{
		super("Get detailed theme", controller);
		this.themeId = themeId;
	}
	
	public void actionPerformed(ActionEvent arg0)
	{
		try
		{
			Worker.post(new Task()
			{

				@Override
				public Object run() throws Exception
				{
					controller.getDetailedTheme(themeId);				
					return null;
				}
			
			});
		}
		catch (Exception e)
		{
			e.printStackTrace();
		}
	}
}
